package co.mibus.empresa;

import android.app.Fragment;
import android.app.FragmentManager;
import android.support.v13.app.FragmentPagerAdapter;

import java.util.Locale;

import co.mibus.R;

public class PagerEmpresa  extends FragmentPagerAdapter {

    public PagerEmpresa(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        Fragment fragment = null;
        switch (position){
            case 1:
                fragment = new Afiliado();
                break;
            default:
                break;
        }
        return fragment;
    }

    @Override
    public int getCount() {
        return 1;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        Locale l = Locale.getDefault();
        switch (position) {
            case 0:
                return getPageTitle(R.string.title_section1);
            case 1:
                return null;
        }
        return null;
    }
}
